<template>
  <el-tabs v-model="activeName" @tab-click="handleClick">
    <el-tab-pane label="账单记录" name="first">
      <charges-bill></charges-bill>
    </el-tab-pane>
    <el-tab-pane label="支付记录" name="second">
      <charges-pay></charges-pay>
    </el-tab-pane>
    <el-tab-pane label="欠款" name="third">
      <charges-debt></charges-debt>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import chargesDebt from './chargesDebt'
import chargesPay from './chargesPay'
import chargesBill from './chargesBill'
export default {
  name: 'Charges',
  components: {
    chargesDebt,
    chargesPay,
    chargesBill,
  },
  data() {
    return {
      activeName: 'first',
    }
  },
  methods: {
    handleClick() {
      // console.log(tab, event);
    },
  },
}
</script>

<style lang="scss" scoped></style>
